home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / filesyst / thsfs.tgz / thsfs.tar / thsfs / Makefile < prev    next >
Makefile  |  1994-09-30  |  574b  |  38 lines

  1. #
  2. # Makefile fuer ths-Filesystem
  3. #
  4. #
  5. # THS
  6. #
  7. all: version ths.o
  8.  
  9. CC = gcc -D__KERNEL__
  10. AS = as
  11. CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486
  12. .c.s:
  13.     $(CC) $(CFLAGS) -S $<
  14. .c.o:
  15.     $(CC) $(CFLAGS) -c $<
  16. .s.o:
  17.     $(AS) -o $*.o $<
  18.  
  19.  
  20. OBJS=    inode.o fat.o super.o divers.o dir.o transfer.o file.o modul.o kompr.o
  21.  
  22. version:
  23.     echo 'char kernel_version[]="'`uname -r`'";' >version.h
  24.  
  25. ths.o: $(OBJS)
  26.     $(LD) -r -o ths.o $(OBJS)
  27.  
  28. dep:
  29.     $(CPP) -M *.c > .depend
  30.  
  31. #
  32. # include a dependency file if one exists
  33. #
  34. ifeq (.depend,$(wildcard .depend))
  35. include .depend
  36. endif
  37.  
  38.